.class Lcom/netease/newsreader/activity/NewsReader$12;
.super Ljava/lang/Object;
.source "NewsReader.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/NewsReader;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/NewsReader;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/NewsReader;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    .line 4732
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .parameter "arg0"

    .prologue
    const/4 v3, 0x0

    .line 4735
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iget-object v0, v0, Lcom/netease/newsreader/activity/NewsReader;->menuWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    .line 4736
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0, v3}, Lcom/netease/newsreader/activity/NewsReader;->access$103(Lcom/netease/newsreader/activity/NewsReader;Z)V

    .line 4738
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$104(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    const-string v1, "\u79bb\u7ebf\u4e0b\u8f7d"

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 4739
    invoke-static {}, Lcom/netease/newsreader/util/FileUtils;->isSDCardMounted()Z

    move-result v0

    if-nez v0, :cond_1

    .line 4740
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    const-string v2, "\u79bb\u7ebf\u4e0b\u8f7d\u5931\u8d25\uff0c\u8bf7\u63d2\u5165SD\u5361"

    invoke-static {v1, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/netease/newsreader/activity/NewsReader;->access$37(Lcom/netease/newsreader/activity/NewsReader;Landroid/widget/Toast;)V

    .line 4741
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$38(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 4760
    :cond_0
    :goto_0
    return-void

    .line 4742
    :cond_1
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$105(Lcom/netease/newsreader/activity/NewsReader;)Lcom/netease/newsreader/activity/MyApplication;

    move-result-object v0

    invoke-virtual {v0}, Lcom/netease/newsreader/activity/MyApplication;->getIsDownOffline()Z

    move-result v0

    if-nez v0, :cond_0

    .line 4743
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/util/Tools;->CheckNetwork(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 4744
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$57(Lcom/netease/newsreader/activity/NewsReader;)V

    goto :goto_0

    .line 4746
    :cond_2
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/util/Tools;->isWifi(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 4747
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$58(Lcom/netease/newsreader/activity/NewsReader;)V

    goto :goto_0

    .line 4749
    :cond_3
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$59(Lcom/netease/newsreader/activity/NewsReader;)V

    goto :goto_0

    .line 4754
    :cond_4
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$105(Lcom/netease/newsreader/activity/NewsReader;)Lcom/netease/newsreader/activity/MyApplication;

    move-result-object v0

    invoke-virtual {v0}, Lcom/netease/newsreader/activity/MyApplication;->getIsDownOffline()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 4755
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$105(Lcom/netease/newsreader/activity/NewsReader;)Lcom/netease/newsreader/activity/MyApplication;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/netease/newsreader/activity/MyApplication;->setIsCancleOfflineDown(Z)V

    .line 4756
    iget-object v0, p0, Lcom/netease/newsreader/activity/NewsReader$12;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v0}, Lcom/netease/newsreader/activity/NewsReader;->access$104(Lcom/netease/newsreader/activity/NewsReader;)Landroid/widget/TextView;

    move-result-object v0

    const-string v1, "\u79bb\u7ebf\u4e0b\u8f7d"

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method
